package com.cw.jeeyt;

import org.springframework.cache.ehcache.EhCacheCacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.MultipartResolver;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

/**
 * TODO
 *
 * @author chenw
 * @date 2021/1/20
 */
@Configuration
public class JeeytConfig {
    @Bean
    public EhCacheCacheManager initCache(){
        return new EhCacheCacheManager();
    }

    @Bean(name="multipartResolver")
    public MultipartResolver multipartResolver(){
        return new CommonsMultipartResolver();
    }

}
